package com.danbay.cloud.device.api.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

/**
 *
 * @author SJG
 * 2017/10/16
 * 设备登录DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DeviceLoginDto {

    /**
     * 设备id
     * 由中控获取设备上的唯一码作为设备id
     */
    @NotBlank(message = "设备ID不能为空")
    protected String devId;

    protected String owner;

    /**
     * 登录ip
     */
    private String ip;

    private String version;
}
